<?php
session_start();
require_once("../common/config.php");
$conn = new connectDb();

$category = $_POST['category'];
$sql = "SELECT `ch_name` FROM `food_basic`,`food_category` WHERE `category` = '$category' AND food_category.id = `category_id`";
$query = mysql_query($sql)or die(mysql_error());
while($row = mysql_fetch_array($query))
{
	echo "<a href=''>".$row['ch_name']."</a>";
}
?>